package com.cafe.service;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.cafe.model.Customer;
import com.malamute.core.common.Page;

/**
 * @Description 会员业务接口
 * @version v1.0
 */

public interface CustomerService {
	// 前台注册会员
	void registerCustomer(Customer customer);

	// 注册会员
	void saveCustomer(Customer customer);

	// 根据会员ID获取会员
	Customer getCustomerById(int id);

	// 修改会员
	void updateCustomer(Customer customer);

	// 根据会员ID删除会员
	void deleteCustomerById(int id);

	// 根据DetachedCriteria来获取分页内容
	void listCustomersByPage(DetachedCriteria criteria, Page page);

	// 根据用户名查找
	List findCustomersByUsername(DetachedCriteria criteria);
}
